package io.github.jsp.service;

import io.github.jsp.model.JobRegistry;
import java.util.List;

public interface JobRegistryService {
    
    JobRegistry getById(Integer id);
    
    List<JobRegistry> findAll(String registryGroup);
    
    JobRegistry findByKey(String registryGroup, String registryKey);
    
    int registry(JobRegistry jobRegistry);
    
    int removeDead(String registryGroup, String registryKey);
    
    int removeDeadByTime(long beforeTime);
}